package com.mhc.haval.manager;

import com.subaru.common.query.PageResult;
import com.mhc.haval.dal.model.DeptBizAreaDO;
import com.mhc.haval.dal.query.DeptBizAreaQuery;

import java.util.List;


/**
 * Manager for DeptBizArea.
 */
public interface DeptBizAreaManager {
    /**
     * query count by query condition.
     */
    int countByQuery(DeptBizAreaQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(DeptBizAreaQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(DeptBizAreaDO record);

    /**
     * insert selective.
     */
    long insertSelective(DeptBizAreaDO record);

    /**
     * select by query condition.
     */
    List<DeptBizAreaDO> selectByQuery(DeptBizAreaQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<DeptBizAreaDO> selectByQueryWithPage(DeptBizAreaQuery query);

    /**
     * select by primary key.
     */
    DeptBizAreaDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( DeptBizAreaDO record,  DeptBizAreaQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(DeptBizAreaDO record, DeptBizAreaQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(DeptBizAreaDO record);
}